<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/3/16 0016
  Time: 12:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Bootstrap 101 Template</title>
    <!-- Bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>

    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<jsp:include page="/WEB-INF/view/header.jsp"></jsp:include>

<div class="container-fluid">

    <div class="col-md-1"></div>
    <div class="panel panel-default">
        <div class="panel-heading">查询结果：</div>
        <div class="panel-body">
            <div class="col-md-6 ">
                <c:forEach var="i" begin="1" end="${requestScope.queryList.size()}">
                    <div style="line-height: 40px;">
                        <a href="${pageContext.request.contextPath }/article?method=details&articleId=${requestScope.queryList.get(i-1).getArticleId()}&userId=${requestScope.queryList.get(i-1).getUserId()}"
                           class="navbar-link">
                            <li> ${requestScope.queryList.get(i-1).getTitle()}</li>
                        </a>
                    </div>
                </c:forEach>
            </div>
        </div>
    </div>
    <div class="col-md-2"></div>

</div>
</body>
</html>
